package com.ning.parking.service;

import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSONUtil;
import com.ning.parking.domain.dto.SysUserParkingLotSaveDTO;
import com.scsonic.framework.common.response.R;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @Author ChenN
 * @Date 2025/4/22 10:15
 * @Version 0.0.1
 **/
@Service
@AllArgsConstructor
public class SysUserFeignClient {
    public R<Void> saveUserParkingLot(SysUserParkingLotSaveDTO parkingLotSaveDTO) {
        String post = HttpUtil.post("https://pst.ning.com/api/parklot/save/parkingLotSave", JSONUtil.parse(parkingLotSaveDTO).toString());
        return R.ok();
    }
}
